#include "stm32f10x.h"
#include "Delay.h"
#include "key.h"
#include "LED.h"

uint8_t KeyNum;
int main(void)
{
	LED_Init();
	Key_Init();
	while (1)
	{
		KeyNum = Key_GetNum();
		if (KeyNum == 1)
		{
			LED1_Turn();
		}
		if (KeyNum == 2)
		{
			LED2_Turn();
		}
		if (KeyNum == 3)
		{
			LED3_Turn();
		}
		if (KeyNum == 4)
		{
			LED4_Turn();
		}

	}
}

